using System.Web.Mvc;
using UnitTestingAspNetMVC.Models;

namespace UnitTestingAspNetMVC.Controllers
{
    public abstract class BaseController : Controller
    {
    	protected SpeakerInfo SpeakerInfo
    	{
    		get
    		{
				var info = Session[SessionKeys.SpeakerInfoKey] as SpeakerInfo;
				if( info == null)
				{
					info = new SpeakerInfo();
				}

    			return info;
    		}
			set
			{
				Session[SessionKeys.SpeakerInfoKey] = value;
			}
    	}
    }
}
